<%@ page language="java" contentType="text/html;charset=utf-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="zh-cn" class="no-js">
<!--<![endif]-->
<head>
    <jsp:include page="../common/common.jsp"/>
    <link rel="stylesheet" type="text/css" href="${path}/assets/plugins/select2/select2.css"/>
    <link rel="stylesheet" type="text/css" href="${path}/assets/plugins/select2/select2-metronic.css"/>
</head>
<body class="page-header-fixed">
<!-- BEGIN HEADER -->
<jsp:include page="../common/header.jsp"/>
<div class="clearfix">
</div>
<!-- BEGIN CONTAINER -->
<div class="page-container">
    <div class="page-sidebar-wrapper">
        <jsp:include page="../common/menu.jsp"/>
    </div>
    <div class="page-content-wrapper">
        <div class="page-content">
            <!-- BEGIN PAGE CONTENT-->
            <div class="row">
                <div class="col-md-12">
                    <!-- BEGIN EXAMPLE TABLE PORTLET-->
                    <div class="portlet box purple">
                        <div class="portlet-title">
                            <div class="caption">
                            <i class="fa fa-file-text-o"></i> 采集结果列表
                            </div>
                            <div class="tools">
                                <div class="actions">
                                    <!-- <a href="" class="btn green"> 删除</a>
                                    <a href="" class="btn blue">同时删除历史</a>
                                    <a href="" class="btn default">导入选中</a>
                                    <a href="" class="btn red">全部导入</a>
                                    <button type="button" id="btnDelValue" class="btn red"><i class="fa fa-trash-o"></i></button> -->
                                </div>
                            </div>
                        </div>
                        <div class="portlet-body">
                            <form id="formQuery" class="form-horizontal" action="">
                                <div class="form-body">
                                    <div class="form-group">
                                        <label class="col-md-1 control-label">站点名称</label>
                                        <div class="col-md-2">
                                            <input type="text" id="name" name="name" class="form-control">
                                        </div> 
                                        <label class="col-md-1 control-label">状态</label>
                                        <div class="col-md-1"  style="width:125px;">
                                            <select id="status" name="status" class="form-control">
                                                <option value="">全部</option>
                                                <option value="0">未采集</option>
                                                <option value="1">已采集</option>
                                                <option value="2">已发布</option>
                                            </select>
                                        </div>
                                        <!-- 
                                        <label class="col-md-1 control-label">采集时间</label>
                                        <div class="col-md-4">
                                            <div class="input-group input-large date-picker input-daterange"
                                                 data-date-format="yyyy-mm-dd">
                                                <input type="text" class="form-control" id="fromDate" name="fromDate"
                                                       readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                                <span class="input-group-addon">to</span>
                                                <input type="text" class="form-control" id="toDate" name="toDate"
                                                       readonly="readonly" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})"/>
                                            </div>
                                        </div>
                                         -->
                                        <div class="col-md-1">
                                            <button type="button" class="btn green" onclick="getRobotResultList()">查询</button>
                                        </div>
                                    </div>
                                </div>
                            </form>                        
<!--                         
                            <table class="table table-striped table-bordered table-hover" id="sample_1">
                                <thead>
                                <tr class="heading">
                                    <th>选择</th>
                                    <th>序号</th>
                                    <th>标题</th>
                                    <th>网址</th>
                                    <th>状态</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                 <tr>
                                <td><input type="checkbox" value=""/></td>
                                <td>1</td>
                                 <td>1</td>
                                  <td>1</td>
                                   <td>1</td>
                                   <td>
						              <a href="./robotResultDetail.jsp" class="btn default btn-xs purple"><i class="fa fa-edit" title="编辑"></i></a>
                                      <a href="#"  class="btn default btn-xs red"><i class="fa fa-trash-o" title="删除"></i></a>
                                   </td>
                                 </tr>  
                                </tbody>
                            </table>
  -->                           
                            <table class="table table-striped table-bordered table-hover" id="robotResultList"></table>
                            
                            
                            <div id="ajax-modal" class="modal fade bs-modal-lg" tabindex="-1" role="dialog"
                                 data-keyboard="false">
                                <div class="modal-dialog modal-lg">
                                    <div class="modal-content">
                                        <div class="modal-header">
                                            <button type="button" class="close" data-dismiss="modal"></button>
                                            <h4 class="modal-title">采集内容详细信息</h4>
                                        </div>
                                        <div class="modal-body" style="padding: 20px 20px 0px 20px;">
                                            <div class="row">
                                                <div class="col-md-12">
                                                    <div class="portlet box purple ">
                                                        <div class="portlet-title">
                                                            <div class="caption">
                                                                <i class="fa fa-reorder"></i> <span id="detailTitleDiv"></span>
                                                            </div>
                                                        </div>
                                                        <div class="portlet-body form">
                                                                <div class="form-body">
                                                                    <input type="hidden" id="id" name="id"/>

                                                                    <div class="form-group">
                                                                        <div id="detailContentDiv"></div>
                                                                    </div>
                                                                    
                                                                </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="modal-footer">
                                            <button type="button" class="btn default" data-dismiss="modal">关闭</button>
                                        </div>
                                    </div>
                                </div>
                            </div>                           
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<jsp:include page="../common/footer.jsp"/>
<script type="text/javascript" src="${path}/robotManager/js/robotResult.js"></script>
<script type="text/javascript" src="${path}/assets/plugins/calendar/WdatePicker.js"></script>
<script type="text/javascript">
    $(function () {
        getRobotResultList();
    });
</script>
</body>
</html>